import React from 'react';
import {Route,IndexRoute} from 'react-router'
import PersonalCenter from '../components/learn/PersonalCenter'
import Card from '../components/personal/Card'
import Collector from '../components/personal/Collector'
import Dynamic from '../components/personal/Dynamic'
import Library from '../components/personal/Library'
import MyArticle from '../components/personal/MyArticle'
import PointDetail from '../components/personal/PointDetail'
import PointShop from '../components/personal/PointShop'
import MyArticleDetail from '../components/learn/MyArticleDetail'
const personalRoutes = (
    <Route path='PersonalCenter' component={PersonalCenter}>
            <IndexRoute component={Card}/>
            <Route path='Card' component={Card} />
            <Route path='MyArticle' component={MyArticle} />
            <Route path='Dynamic' component={Dynamic} />
            <Route path='Collector(/:code)' component={Collector} />
            <Route path='Library' component={Library} />
            <Route path='PointShop' component={PointShop} />
            <Route path='PointDetail' component={PointDetail} />
            <Route path='MyArticleDetail/:id' component={MyArticleDetail}/>
    </Route>

);
export default personalRoutes;